package com.feditory.category.provider;

import java.util.List;

import com.feditory.category.domain.Category;
import com.feditory.category.domain.CategoryChannelType;
import com.feditory.category.domain.CategoryType;

public interface CategoryProvider {

    public long createCategory(Category category) throws RuntimeException;

    //    public Category retrieveCategory(long categoryId) throws RuntimeException;

    public List<Category> retrieveMainCategoryAllList(CategoryChannelType categoryChannelType, CategoryType categoryType);

    //    public void disableCategory(long categoryId) throws RuntimeException;

    //    public void disableCategoryList(List<Long> categoruIdList) throws RuntimeException;

    /**
     * parentId 에 속한 SUB 카테고리 목록조회
     *======================================================
     * @method  : CategoryProvider - retrieveCategoryListByParentId 
     * @author  : bgkang
     * @since   : 2012. 7. 14.
     * @return  : List<Category>
     * @param parentId
     * @return
     * @note    :
     *======================================================
     * @update : 수정일, 수정자, 수정내용
     *
     *======================================================
     */
    List<Category> retrieveCategoryListByParentId(long parentId);
}
